package org.ping.Tool;

import org.apache.log4j.Logger;

public class LogUtil {
	 
	
	// 单例模式  
    private static LogUtil logUtil = new LogUtil();  
    
    private static Logger loggerCustom = null;  
  
    public static LogUtil getLogUtil(Object message) {
        loggerCustom = Logger.getLogger(message.getClass());  
        return logUtil;  
    }  
  
    public void showlog(Object message) {  
        loggerCustom.error(message);  
    }  
    
}
